package t01;

/**
 * @author zhu
 * @date 2024-04-11
 */
public class MainTest {
    public static void main(String[] args) {
        IWenHou iWenHou1 = (name) -> {
            System.out.println("你好呀，" + name);
        } ;
        iWenHou1.sayHello("张三");

        User user = new User();
        IWenHou iWenHou2 = user::goodMorning;
        iWenHou2.sayHello("李四");

        IWenHou iWenHou3 = user::goodAfternoon;
        iWenHou3.sayHello("王五");

        // IWenHou iWenHou4 = user::goodNight;
    }
}
